Repository navigation
feat(HardwareSupport): Add guide button mapping for advan xplay handheld pc - #805
khasburrahman wants to merge 2 commits into
Conversation
Assisted-by: LLM
| # The Home button is reported as Win+D (scancodes 0xdb + 0x20) by the | ||
| # embedded controller. Map it to a spare key and drop the extra event. | ||
| evdev:name:AT Translated Set 2 keyboard:dmi:*:svnADVAN:pn1301:* | ||
| KEYBOARD_KEY_db=f16 |
There was a problem hiding this comment.
Rather than add this, you can just add both source events in the capability mapping.
There was a problem hiding this comment.
Updated, moved the mapping to capability maps
| - name: Home | ||
| mapping_type: | ||
| evdev: chord | ||
| source_events: |
There was a problem hiding this comment.
Here you can just have two source event entries, one for win and one for D
There was a problem hiding this comment.
Thank you! much simpler this way
| handler: event* | ||
| events: | ||
| exclude: | ||
| # The pad has no dedicated Guide button. Holding the Home button makes |
There was a problem hiding this comment.
Does the win+d release when this fires, or do both release at the same time?
There was a problem hiding this comment.
It released almost at the same time, this is the home button reading, when tapping it
Event: time 1794560278.272687, type 4 (EV_MSC), code 4 (MSC_SCAN), value db
Event: time 1794560278.272687, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 1
Event: time 1794560278.272687, -------------- SYN_REPORT ------------
Event: time 1794560278.274710, type 4 (EV_MSC), code 4 (MSC_SCAN), value 20
Event: time 1794560278.274710, type 1 (EV_KEY), code 32 (KEY_D), value 1
Event: time 1794560278.274710, -------------- SYN_REPORT ------------
Event: time 1794560278.279796, type 4 (EV_MSC), code 4 (MSC_SCAN), value 20
Event: time 1794560278.279796, type 1 (EV_KEY), code 32 (KEY_D), value 0
Event: time 1794560278.279796, -------------- SYN_REPORT ------------
Event: time 1794560278.287845, type 4 (EV_MSC), code 4 (MSC_SCAN), value db
Event: time 1794560278.287845, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 0
Event: time 1794560278.287845, -------------- SYN_REPORT ------------when holding the home button, after about a second it'll trigger the guide button on internal generic controller, but it immediately released.
it doesn't register hold (2) with prolonged hold.
Event: time 1794560421.164268, type 1 (EV_KEY), code 316 (BTN_MODE), value 1
Event: time 1794560421.164268, -------------- SYN_REPORT ------------
Event: time 1794560421.284113, type 1 (EV_KEY), code 316 (BTN_MODE), value 0
Event: time 1794560421.284113, -------------- SYN_REPORT ------------|
Accessing QAM via the generic hidraw would be excellent. It keeps everything sled contained. Before making any changes I'd like to understand how the home button works a bit better. When possible, we want to make sure guide chords are available. If the current configuration skips a beat for holding the button, it might be preferable to suppress the win+d instead. |
|
@pastaq Thanks for the suggestion! I tested suppressing the at-keyboard win+d register, it doesn't able to do guide chords. |
Hello, first time contributor here!
I'm adding support for handheld PC: advan xplay. Looking to share with everyone having this device using inputplumber/bazzite, been overriding locally the past months.
I figured the button event using evtest. The behavior of this handheld:
Changelog:
How I tested the changes:
Since it's all config changes, I found separate thread discussing we can override the config manually.
I'm testing the changes in bazzite. I tested the change locally by copying the config file manually to:
Then trigger the hwdb update
and restart the service
Notes: